package SIMRS.Apotek.widget;

import java.awt.Color;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;

/**
 *
 * @author Prayitno
 */
public class TextArea extends JTextArea{
    private static final long serialVersionUID = 1L;

    public TextArea() {
        super();
        setOpaque(false);
        setLineWrap(true);
        setWrapStyleWord(true);
        setFont(new java.awt.Font("Tahoma", 1, 11));
        setBorder(new EmptyBorder(5, 5, 5, 5));
        setForeground(Color.blue);

        addFocusListener(new FocusAdapter() {

            @Override
            public void focusGained(FocusEvent e) {
                selectAll();
            }
            
        });
    }

}
